<br /><h3>Выступление</h3>
<p>

  <?php 
             
    if ( $topic['details_enabled'] )
    {
      $request['title'] = cleaner( $request['title'] );
      $request['team']  = cleaner( $request['team'] );    
    
      print $request['title'] ? 'Выступление «' . $request['title'] . '»<br />' : '';
      print $request['team'] ? 'Команда «' . $request['team'] . '»<br />' : '';
    }
 
    if ( ! $request['title'] and ! $request['team'] ) print '<i>Нет информации.</i>';
    
    if ( $do == 'update-info' )  
    {
      $info = cleaner( $_POST );  
    }
    else
    {
      $info = array(
        'title'       => $request['title'],
        'team'        => $request['team'],       
      );
    }    
    
  ?>
 
</p> 

<p><a href='javascript:void(0)' onclick='changeDisplay( "info_form" )'>Редактировать</a> &rarr;</p>
<div style="display:none" id='info_form'>
  <form action='' method='post'>
  
    <input type='hidden' name='do' value='update-info'>
    
    <table>
      <?php if ( $topic['details_enabled'] ) { ?>
      <tr>
        <td>Название</td>
        <td><input type='text' name='title' value='<?php print $info['title'] ?>'></td> 
      </tr>
      <tr>
        <td>Команда</td>
        <td><input type='text' name='team' value='<?php print $info['team'] ?>'></td> 
      </tr>
      <?php } ?>
      <tr>
        <td colspan="2"><button style='width: 100%' type='submit'>Сохранить</button></td>
      </tr>
      
    </table>

  </form>
</div>